﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IceDog.Lib.Poker
{
    public class CardList:List<Card>,ICloneable
    {
        
        public void CopyTo(CardList cardList)
        {
            for (int i = 0; i < this.Count; i++)
            {
                cardList[i] = this[i];
            }
        }
        public object Clone()
        {
            var list = new CardList();
            foreach (Card card in this)
            {
                list.Add(card.Clone() as Card);
            }
            return list;
        }
    }
}
